 import java.util.Scanner;
 
 public class PP29
 {
    public static void main(String[] args)
    {
       int total_seconds;
       int factor1=3600;
       int factor2=60;
       int hours;
       int minutes;
       int seconds;

       Scanner scan = new Scanner(System.in);

       System.out.print("Enter the number of total_seconds:");
       total_seconds = scan.nextInt();

       hours = total_seconds/factor1;
       minutes = (total_seconds-hours*factor1)/factor2;
       seconds = total_seconds-hours*factor1-minutes*factor2;

       System.out.println("hours:" +hours);
       System.out.println("minutes:" +minutes);
       System.out.println("seconds:" +seconds);
    }
 }

       
